package com.starnet.yarnmonitor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.Arrays;

@EnableSwagger2
@MapperScan({"com.starnet.yarnmonitor.yarn.mapper","com.starnet.yarnmonitor.security.mapper"})
@SpringBootApplication
@EnableScheduling
public class YarnMonitorApplication {

    public static void main(String[] args) {
        SpringApplication.run(YarnMonitorApplication.class, args);
    }

}
